<%--
  Created by IntelliJ IDEA.
  User: taohj
  Date: 2014/6/29
  Time: 18:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<c:set var="menu" value="none" scope="request"></c:set>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!Doctype html>
<html>
<head>
    <base href="<%=basePath%>">
    <title>政府数据开放平台</title>
    <jsp:include page="../../commons/include.jsp"/>

    <link href="/resources/css/lib.css" rel="stylesheet">
    <script src="/resources/js/lib/jquery-1.10.2.min.js"></script>
    <script src="/resources/js/front/commons.js"></script>



</head>
<body>



<jsp:include page="../../commons/top.jsp"/>
<div class="main">


    <jsp:include page="../../commons/dashboardMenu.jsp"/>


    <div>
        <div>
            <form method="post" action="/front/my/favorites/modify" enctype="multipart/form-data">

             <input type="hidden" name="id" value="${requestScope.favorites.id}">


                <table class="updateTable">
                    <tr>
                        <td>名称:</td>
                        <td><input type="text" name="name" value="${requestScope.favorites.name}"></td>
                    </tr>


 

                    <tr>
                        <td>图片:</td>
                        <td>
                            <img src="${requestScope.favorites.headImage}" width="120" height="80">
                            <br/>
                            <input  type="file" name="image">
                        </td>
                    </tr>





                    <tr>
                        <td>简 介:</td>
                        <td><textarea name="description" rows="8">${requestScope.favorites.description}</textarea></td>
                    </tr>


                    <tr>
                        <td>收藏类型：:</td>
                        <td>   <input type="radio" dataSync="true" name="type" dictionaryType="FAVORITES_TYPE" checkedValue="${requestScope.favorites.type.id}"></td>
                    </tr>



                    <tr>
                        <td colspan="2" style="text-align: left;padding-left: 200px;"><input type="submit" value="更   新"/></td>
                    </tr>
                </table>



            </form>
        </div>
    </div>


</div>
<jsp:include page="../../commons/buttom.jsp"/>
</body>
</html>
